package com.jt.www.common.controller;

import com.jt.www.common.service.OpeLogService;
import com.jt.www.model.oplog.vo.InsureTrackVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/*
 *  操作軌跡
 * @Author xq.wu
 * @Date 11:46 2019/11/1
 * @Param
 * @return
 **/
@Api(value = "投保轨迹", tags = {"OPE-LOG-API"}, description = "投保轨迹相关接口")
@RestController
@RequestMapping(value = "oper")
public class OpeLogController {

    public static final Logger log = LoggerFactory.getLogger(OpeLogController.class);

    @Resource
    private OpeLogService opeLogService;

    /**
     * @Description: 投保轨迹查询接口
     * @Param: [insureTrackVO]
     * @return: org.springframework.http.ResponseEntity<?>
     * @Author: shalongteng
     * @Date: 2019/5/26
     */
    @ApiOperation(value = "投保轨迹查询接口")
    @PostMapping(value = "/insure_track_check", produces = {MediaType.APPLICATION_JSON_VALUE})
    public ResponseEntity<?> insureTrackCheck(@Valid @RequestBody InsureTrackVO insureTrackVO) {
        return opeLogService.insureTrackCheck(insureTrackVO);
    }
}
